package com.example.demo1.pojo;

public class person {
    private String username;
    private String  passwd;
    private pet mypet;

    public person(){

    }
    public person(String username, String passwd, pet mypet){
        this.username = username;
        this.passwd = passwd;
        this.mypet = mypet;
    }

    public  String getUsername(){ return username;}

    public  void setUsername(String username){ this.username = username;}

    public String getPasswd(){ return passwd;}

    public void setPasswd(String passwd){ this.passwd = passwd;}

    public pet getMypet(){ return mypet;}

    public void setMypet(pet mypet){ this.mypet = mypet;}

    @Override
    public String toString() {
        return "person{" +
                "username='" + username + '\'' +
                ", passwd='" + passwd + '\'' +
                ", mypet=" + mypet +
                '}';
    }
}
